package cloud.server1.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import cloud.server1.service.KilimService;
import cloud.server1.service.QuasarService;

@RestController
@RequestMapping("/quasar")
public class QuasarController {

	@Autowired
	private QuasarService quasarService;
	@RequestMapping("/compare")
	public String compare(){
		return quasarService.compare();
	}
	@RequestMapping("/recycle")
	public String recycle(){
		return quasarService.recycle();
	}
	@RequestMapping("/sendAndReceive")
	public void sendAndReceive(){
		try {
			Thread.sleep(1000l);
		} catch (InterruptedException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}
}
